fs/hfs: Fix stack OOB write with grub_strcpy()
authorB Horn <b@horn.uk>
Sun, 12 May 2024 01:48:33 +0000 (02:48 +0100)
committerMiao Wang <shankerwangmiao@gmail.com>
Sun, 15 Feb 2026 13:50:20 +0000 (13:50 +0000)
commita9dffd4298567d616d8fc558963220d3e388f7f4
tree8f90398017001530fec4ce3de3d9e5be55bf985a
parent4f23f514b10816a064a61598f1f45848ba2597cd
fs/hfs: Fix stack OOB write with grub_strcpy()

Replaced with grub_strlcpy().

Fixes: CVE-2024-45782
Fixes: CVE-2024-56737
Fixes: https://savannah.gnu.org/bugs/?66599
Reported-by: B Horn <b@horn.uk>
Signed-off-by: B Horn <b@horn.uk>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Gbp-Pq: Topic cve-2025-jan
Gbp-Pq: Name fs-hfs-Fix-stack-OOB-write-with-grub_strcpy.patch
grub-core/fs/hfs.c